
package com.fire.user.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.fire.user.model.SiteModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * SiteDao
 *
 * @author Matthew
 * @Date 2019-01-17 20:50
 */
@Repository
public interface SiteMapper extends BaseMapper<SiteModel>{

	/**
	 * 根据实体查询列表
	 * @param model 实体
	 * @return
	 */
	List<SiteModel> selectListByModel(@Param("e") SiteModel model);


	/**
	 * 查询站点详情
	 * @param siteId 站点ID
	 * @return
	 */
	Map querySiteDetail(@Param("siteId") String siteId);

	List<Map<String,String>> selectListByProprietor(@Param("proprietor")String proprietor);
	List<Map<String,String>> selectListBySupervisor(@Param("supervisorid")String supervisorid);
	List<Map<String,String>> selectListByMaintainor(@Param("maintainor")String maintainor);
}
